import http from '@/utils/request'

// 获取分类列表
export const getCategoryListApi = () => http.get('/categorys/list')

// 获取获取顶级分类
export const getTopCategoryApi = () => http.get('/categorys/top')

// 获取指定分类的子分类列表
export const getChildrenCategoryApi = (id) => http.get(`/categorys/children/${id}`)